RuntimeError: CUDA error: invalid device ordinal CUDA kernel errors might be asynchronously repo

RuntimeError:CUDAerror:invaliddeviceordinalCUDAkernelerrorsmightbeasynchronouslyrepo_runtimeer...